﻿<Window x:Class="SsTool.Metadata.Windows.DictionaryDataWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="DictionaryDataWindow"
        SizeToContent="Height"
        Width="300"
        WindowStartupLocation="CenterScreen">
    <Grid Margin="0,5,0,0">
        <StackPanel>
            <TextBlock Text="编号:"/>
            <TextBox Name="_ctlEditCode" Text="{Binding Path=Code,Mode=TwoWay}"/>
            <StackPanel Orientation="Horizontal">
                <Label Width="75" Content="名称"/>
                <TextBox Width="200" Name="_ctlEditCaption" Text="{Binding Path=Caption,Mode=TwoWay}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label Width="75" Content="排序号"/>
                <TextBox Width="200" Name="_ctlEditOrderIndex" Text="{Binding Path=OrderIndex,Mode=TwoWay}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <Button Name="_ctlBtnSubmit" Click="_ctlBtnSubmit_Click" Margin="5,5,0,5">
                    <StackPanel Orientation="Horizontal">
                        <Image Source="../../Resources/Accept.png" Margin="0,0,5,0"/>
                        <TextBlock Text="保存" VerticalAlignment="Center"/>
                    </StackPanel>
                </Button>
                <Button Name="_ctlBtnCancel" Click="_ctlBtnCancel_Click" Margin="5,5,0,5">
                    <StackPanel Orientation="Horizontal">
                        <Image Source="../../Resources/Cancel.png" Margin="0,0,5,0"/>
                        <TextBlock Text="关闭" VerticalAlignment="Center"/>
                    </StackPanel>
                </Button>
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
